@extends('common')
@section('content')
<br><br>
    <form class="form-inline definewidth m20" action="/finance/search" method="post">
		<input type="hidden" name="_token" value="{{ csrf_token() }}" />
    	<table class="">
    		<tr style="border:none;">
    			<td>编号:<input type="text" placeholder="编号" name="use_num"></td>
    			<td>姓名:<input type="text" placeholder="姓名" name="use_name"></td>
    			<td>费用类型:
					<select name="c_mold" id="">
						<option value="">-选择-</option>
						<option value="学费">学费</option>
						<option value="维修费">维修费</option>
					</select>
    			</td>
    			<td><input type="submit" value="搜索"></td>
    		</tr>
    	</table>
    </form>
    <table class="table table-bordered table-hover m10">
    	<tr>
    		<th>缴费学员</th>
    		<th>学员编号</th>
    		<th>日期</th>
    		<th>费用类型</th>
    		<th>金额(元)</th>
    		<th>支付方式</th>
    	</tr>
		@foreach($costlist as $key => $value)
			<tr>
				<td>{{$value['use_name']}}</td>
				<td>{{$value['use_num']}}</td>
				<td>{{$value['c_time']}}</td>
				<td>{{$value['c_mold']}}</td>
				<td>{{$value['money']}}</td>
				<td>{{$value['c_payment']}}</td>
			</tr>
		@endforeach
    </table>
@stop